import request from '@/utils/libs/request'

/**
 * 版本列表
 * @param params
 */
export function VersionList(params: Record<string, any>) {
    return request.get('version/list', { params })
}

/**
 * 添加版本
 * @param params
 */
export function addVersion(params: Record<string, any>) {
    return request.post('version/add_version', params)
}

/**
 * 编辑版本
 * @param params
 */
export function editVersion(params: Record<string, any>) {
    return request.post('version/edit_version', params)
}

/**
 * 删除版本
 * @param params
 */
export function deleteVersion(params: Record<string, any>) {
    return request.post('version/delete_version', params)
}
